﻿using SD.Infrastructure.EntityBase;
using System;

namespace SlamDunk.MES.Domain.Entities.ResourceContext
{
    /// <summary>
    /// 人员相关人员类
    /// </summary>
    public class PersonRelatedClass : PlainEntity
    {
        #region # 构造器

        #region 00.无参构造器
        /// <summary>
        /// 无参构造器
        /// </summary>
        protected PersonRelatedClass() { }
        #endregion

        #region 01.创建人员相关人员类构造器
        /// <summary>
        /// 创建人员相关人员类构造器
        /// </summary>
        /// <param name="personClassId">人员类Id</param>
        public PersonRelatedClass(Guid personClassId)
            : this()
        {
            this.PersonClassId = personClassId;
        }
        #endregion

        #endregion

        #region # 属性

        #region 人员类Id —— Guid PersonClassId
        /// <summary>
        /// 人员类Id
        /// </summary>
        public Guid PersonClassId { get; private set; }
        #endregion

        #region 导航属性 - 人员 —— Person Person
        /// <summary>
        /// 导航属性 - 人员
        /// </summary>
        public virtual Person Person { get; internal set; }
        #endregion

        #endregion
    }
}
